package com.well.rpc.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TransData implements Serializable {
    private EventType type;
    private String jsonData;

    public static TransData transData(EventType type,String jsonData){
        return new TransData(type,jsonData);
    }
}
